deploy: Also fsync parent directory of modified config files
authorColin Walters <walters@verbum.org>
Tue, 8 Apr 2014 21:41:28 +0000 (17:41 -0400)
committerColin Walters <walters@verbum.org>
Fri, 11 Apr 2014 22:43:13 +0000 (18:43 -0400)
src/libostree/ostree-sysroot-deploy.c

index 44ad9598c282cb80e4e68f75edc29ddf0592d7d3..0856cc1f066f332c9a066c4a16fadfbf4ab5a8c5 100644 (file)
@@ -91,6 +91,8 @@ copy_modified_config_file (GFile              *orig_etc,
           if (!gs_file_sync_data (dest, cancellable, error))
             goto out;
         }
+      if (!ot_util_fsync_directory (dest_parent, cancellable, error))
+        goto out;
     }
 
   ret = TRUE;